@import '../index.less';

@borderColor: #e0e7ff;
@baseBgc: #fff;

.rt-libs-side-bar-box {
  position: absolute;
  transition: 0.5s;
  user-select: none;
  width: 210px;
  padding: 4px 8px;
  overflow-y: scroll;
  background-color: @grayBg;
  border-right: 1px solid #ccc;

  .rt-libs-node-group {
    background-color: @baseBgc;
    cursor: pointer;
    border: 1px solid @borderColor;
    padding: 0 8px;

    .rt-libs-node-group-title {
      padding: 8px 0;
      display: flex;
      justify-content: space-between;
      border-bottom: 1px solid @borderColor;
    }

    .rt-libs-expand-on-off {
      transition: 1200ms;
    }

    .rt-libs-node-group-content {
      display: flex;
      flex-wrap: wrap;
      padding: 4px;

      .rt-libs-node-item {
        width: 32px;
        height: 32px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid @borderColor;
        background-color: @baseBgc;
        border-radius: 6px;
        margin: 4px;
      }
    }
  }

  .rt-libs-items-center {
    display: flex;
    align-items: center;
  }
}
